package first.daodto;

import java.sql.SQLException;
import java.util.List;

import first.Library;
import first.nets.ReaderNetwork;
import first.users.BiblioUser;

public interface UserDao {

	List<BiblioUser>  findAllLibraryUsers(Library lib) throws SQLException; 
	
	List<BiblioUser>  findAllNetworkUsers(ReaderNetwork net) throws SQLException;
	
	int createUserInDefaultLibrary(BiblioUser usr) throws SQLException;
	
	int createUser(BiblioUser usr,Library lib) throws SQLException;
	
	int deleteOneUser(BiblioUser usr) throws SQLException;
	
	int deleteUserFromLibrary(Library lib) throws SQLException;
	
	int deleteUserFromNetwork(ReaderNetwork net) throws SQLException;
	
	
}
